package com.itheima.extendsDemo2;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.cry();
    }
}

class Animal {
    public void cry() {
        System.out.println("父类的方法");
    }
}

class Cat extends Animal {
    @Override
    public void cry() {
        System.out.println("小猫咪： 喵喵喵~");
    }
}
